package com.qf.shopping.mapper.activity;

import com.qf.shopping.pojo.activity.ActivityChannel;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author: Mawentao
 * @Date: 2019/4/11 0011 19:34
 * @Description:
 */
@Repository
public interface ActivityChannelMapper {

    /**
     * 插入数据
     * @param activityChannel
     */
    void insert(ActivityChannel activityChannel);

    /**
     * 查询活动渠道
     * @param activityChannel
     * @return
     */
    List<ActivityChannel> findActivityChannel(ActivityChannel activityChannel);

    /**
     * 模糊查询
     */
    List<ActivityChannel> findActivityChannelLike(ActivityChannel activityChannel);

    /**
     * 通过id 查询
     * @param id
     * @return
     */
    ActivityChannel findActivityChannelById (Long id);

    /**
     * 通过id删除活动渠道 是否已删除 0：未删除 1：已删除
     * id
     * idDelete
     */
    void deleteActivityChannel(Map<String, Object> map);

    /**
     * 更新活动渠道
     * @param activityChannel
     */
    void updateActivityChannel(ActivityChannel activityChannel);
}
